home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / textloader / install_tlng next >
Text File  |  1999-04-19  |  24KB  |  620 lines

  1. ; Installer script for the Diz-Explorer program
  2. ;
  3. ; Changed for the TextLoaderNG 1.12  (13.03.99)
  4. ;
  5. ;******************************************************************************
  6. ;     _  _      ____
  7. ;    / \/ \    /___ |   
  8. ;   / /\/\ \     _ ||
  9. ;  / / /\ \ \   |_|||
  10. ; / / /  \ \ \ ____||
  11. ;/_/ /_/\_\ \_\\____|
  12. ;
  13. ; $VER: 3.00_Diz-Explorer_Installer (Nov-24-1997) 
  14. ; If you wish to use any part of this installer you must ask us.
  15. ;
  16. ; Installer    by Jochen Grus & Martin Gentile ©1996-1999 
  17. ; Diz-Explorer by Jochen Grus ©1997-99 
  18. ; Last Update: FEB-11-1999
  19. ;---------------------------------------
  20. ;        This could be your logo! 
  21. ;           __  __      _______ 
  22. ;          /  \/  \    /_____/ \
  23. ;         /  \  /  \  /  \  /  /
  24. ;        /  / \/ \  \/ /\ \/  / 
  25. ;       /  /  /  -\  \ \/ /  /  
  26. ;      /  /  /  __    \__/  /   
  27. ;      \_/  /__/  \_/\_____/    
  28. ;
  29. ;       Explorer Version 4.6e
  30. ;
  31. ;          © 1997-1999 by: 
  32. ;
  33. ;   Jochen Grus and Martin Gentile
  34. ;---------------------------------------
  35. ;
  36. ;
  37. ;
  38. ;
  39. ; TextLoader by Pascal Gisin ©1994-99 
  40. ;
  41. ; TextLoaderNG by Jochen Grus & Pascal Gisin ©1999 
  42. ;
  43. ;
  44. ;  
  45. ;  
  46. ;******************************************************************************
  47. (procedure Explor (set JOH 1) ( (while (< JOH 4444)  (set JOH (+ JOH 1)) )  ) )
  48.  
  49. (procedure InformX
  50. (working (cat "\n\n"
  51.               " Word 6,7,8\n"
  52.               " WordPerfect\n"
  53.               " AmiWriter\n"
  54.               " WordWorth\n"
  55.               " FinalWriter\n"
  56.               " HTML\n"
  57.               " RTF\n"
  58.               " \n"
  59.          )           
  60. )
  61. )
  62. (procedure InformY
  63. (working (cat "\n\n"
  64.               "\n"
  65.               "\n"
  66.               "TextLoaderNG Version 1.13\n"
  67.               "\n"
  68.               "by\n"
  69.               "\n"
  70.               "   Jochen Grus & Pascal Gisin   \n"
  71.               "\n"
  72.          )           
  73. )
  74. )
  75. (InformY)
  76.  
  77. (Explor)(Explor)
  78. (InformX)(Explor)
  79. (InformY)(Explor) (InformX)(Explor)
  80. (InformY)(Explor) (InformX)(Explor)
  81. (InformY)(Explor) (InformX)(Explor)
  82. (InformY)(Explor) (InformX)(Explor)
  83. (InformY)(Explor) (InformX)(Explor)
  84. (InformY)(Explor) (InformX)(Explor)
  85. (InformY)(Explor) (InformX)(Explor)
  86. (InformY)(Explor) (Explor) (Explor)
  87.  
  88. ;*** System Stuff ***
  89. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  90. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  91. (set osver (/ (getversion "LIBS:version.library") 65536))
  92. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  93. (set fastmem (- totmem graphmem))
  94.  
  95. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  96. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  97. (if (= osver 41) (set workbench "3.5"))
  98.  
  99. (set cpu (database "cpu"))
  100. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  101. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  102. (if (= cpu 68040) (set #cpu 4)) 
  103. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  104. (if (> (exists ("sys:libs/ppc.library")) 0) (set #cpu 6) )
  105.  
  106. (if (> cpu 68010)  (set #fpuGuess 0)  (set #fpuGuess 1) )
  107.    
  108. (set vernum1 (getversion "TextLoader")) (set ver2 (/ vernum1 65536)) 
  109. (set rev1 (- vernum1 (* ver1 65536) ) ) (set TextLoaderver (cat ver1 "1.1" rev1))
  110.  
  111. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  112. (set lan 0)
  113.  
  114. (if (= "english"     lanfound) (set lan 0))
  115. (if (= "deutsch"     lanfound) (set lan 1))
  116. (if (= "italiano"    lanfound) (set lan 2)) 
  117. (if (= "francais"    lanfound) (set lan 3)) 
  118. (if (= "svenska"     lanfound) (set lan 4)) 
  119. (if (= "norsk"       lanfound) (set lan 5)) 
  120. (if (= "nederlands"  lanfound) (set lan 6)) 
  121. (if (= "dansk"       lanfound) (set lan 7)) 
  122.  
  123. (set #English       "English")
  124. (set #Deutsch       "Deutsch")
  125. (set #Italiano     "Italiano")
  126. (set #Francais     "Francais")
  127. (set #Svenska       "Svenska")
  128. (set #Norsk           "Norsk")
  129. (set #Nederlands "Nederlands")
  130. (set #Dansk           "Dansk")
  131.  
  132. (set mfound 0) (set newicon1 1) 
  133. (set keeper 1) (set firsttime 0)
  134.  
  135. ;***********************************************************************
  136. ; The English Installation Strings for the TextLoaderNG
  137. ;***********************************************************************
  138. (set #about (cat "\n\n\n\nWelcome to the TextLoaderNG " TextLoaderver "\n\n\nCopyright © 1994-99 by\n\nJochen Grus & Pascal Gisin\n") )
  139. (set #about2 (cat "\n\n\n\n Contact:\n\n Jochen.Grus@rhein-main.net \n\n or\n\n PGISIN@nextron.ch\n\n\n\n") )
  140. (set #about3 (cat "\n\n\n\n Updates & Stuff at:\n\n www.nextron.ch/~force/\n\n or\n\nhttp://www.geocities.com/SiliconValley/Grid/8661/") )
  141. (set #aboutpacker (cat "\n\n\n\nNothing yet - go on with the installation... ") )
  142. (set #aboutdevices (cat "\n\n\n\nNow you should copy the font to the >Fonts< directory. ") )
  143. (set #aboutlhacheck (cat "\n\n\n\n                - W A R N I N G -               Installation found the following file in the C-directory: LHACHECK. You should delete this file because it has the BBS-Trojan VIRUS!!! ") )
  144. (set #aboutdatatype1 (cat "\n\n\n\n- W A R N I N G -\n\n Installation found Datatypes.library in Libs:\n\n V45.4. or higher!  If the size of this file is 32748 (Normal 27kb) bytes you should know that this one a VIRUS!") )
  145. (set #askcpu "\nThe installer has found the following CPU:\n")
  146. (set #askcpu2 "\nThe installer program has found a CPU. The installer should show correctly what kind of cpu is installed...\n")
  147. (set #whereTextLoader "Where do you wish to install the TextLoader. A directory called 'Textloader' will be created if one is not there. If a copy of Textloader is found it will be backed up.")
  148. (set #filethere1 "\n\nThe installer has found an TextLoader version ")
  149. (set #filethere2 " at ")
  150. (set #filethere3 "\n\nThe file will be renamed to ")
  151. (set #filethere4 " and it will then be moved to ")
  152. (set #backuptoXXX "Back-UP to file named 'TextLoader.")
  153. (set #copyover "Copy Over Old Version")
  154. (set #oktodelete1 "\nIs it ok to delete the older TextLoader binary so that the TextLoader Directory can be made?\n")
  155. (set #oktodelete2 "\nIs it ok to delete the older _renamed_ TextLoader binary so that the TextLoader Directory can be made?\n")
  156. (set #TextLoaderfound "\nThe Installer has found a copy of TextLoader already installed. What do you want to do?\n")
  157. (set #newicon "\nDo you wish to copy over The Textloader Icon from the archive? If you have any ToolTypes already set you should select no.\n")
  158. (set #nonewicon  "No  - ToolTypes already set.")
  159. (set #yesnewicon "Yes - Copy over the old TextLoader Icon.")
  160. (set #whatcat "\nSelect the TextLoader Language catalog you wish to install.\n")
  161. (set #wherecat "\nWhere do you wish to install the TextLoader Language Catalog? There is no need for it yet. Default is ")
  162. (set #catnofind "Can not find this catalog in this TextLoader archive. No need for it yet.")
  163. (set #whatdocs "\nWhat TextLoader documentation would you like to install?\n")
  164. (set #wheredocs "Where would you like the TextLoader documentation you selected to be installed?")
  165. (set #byebye (cat "\nTextLoader Install Complete!\n\n" ))
  166. (set #setup_help
  167.         (cat
  168.             "TextLoaderNG needs an Assign in main directory to "
  169.             "properly setup. If you skip this pass you MUST "
  170.             "manually enter it later in your User-StartUp or "
  171.             "in a shell prior to run TextLoaderNG."
  172.         )
  173.     )
  174.  
  175.  
  176.  
  177. ;***********************************************************************
  178. ; The German Installation Strings for the TextLoaderNG
  179. ;***********************************************************************
  180.  
  181. (if (= lan 1)
  182. (
  183.  (set po 1)
  184.  
  185. (set #about (cat "\n\n\n\nWillkommen zum TextLoaderNG " TextLoaderver "\n\n\nCopyright © 1994-99 by\n\nJochen Grus & Pascal Gisin\n") )
  186. (set #about2 (cat "\n\n\n\n Kontakt:\n\n Jochen.Grus@rhein-main.net \n\n or\n\n PGISIN@nextron.ch\n\n\n\n") )
  187. (set #about3 (cat "\n\n\n\n Updates & Stuff at:\n\n www.nextron.ch/~force/\n\n or\n\nhttp://www.geocities.com/SiliconValley/Grid/8661/") )
  188. (set #aboutpacker (cat "\n\n\n\nNichts vorhanden - Weiter mit der Installation. ") )
  189. (set #aboutdevices (cat "\n\n\n\nJetzt sollten Sie den Font in das >Fonts< Verzeichnis installieren. ") )
  190. (set #aboutlhacheck (cat "\n\n\n\n                - W A R N U N G -                                                                     Installation hat folgende Datei im C-Verzeichnis gefunden: LHACHECK. Sie sollten diese Datei entfernen, da es den VIRUS BBS-Trojan enthält!!! ") )
  191. (set #aboutdatatype1 (cat "\n\n\n\n- W A R N U N G -\n\n Installation hat folgende Datei im LIBS-Verzeichnis gefunden: DataTypes.library Version 45.4. Sie sollten diese Datei nach einen Virus überprüfen, wenn die Dateigröße 32748 bytes hat würde ich sie sofort löschen! ") )
  192. (set #askcpu "\nFolgender Prozessor wurde vom Installer erkannt:\n")
  193. (set #askcpu2 "\nDer Installer hat einen Prozessor gefunden. Es müßte den richtigen Typ korrekt erkannt haben! \n")
  194. (set #whereTextLoader "Wohin wollen Sie den TextLoaderNG installieren ? Ein Verzeichnis 'TextLoader' wird erzeugt, wenn es nicht existiert. Wenn bereits eine TextLoader Version vorhanden ist, kann diese gesichert werden.")
  195. (set #filethere1 "\n\nDas Installationsprogramm hat eine TextLoader Version gefunden")
  196. (set #filethere2 " at ")
  197. (set #filethere3 "\n\nDie Datei wird umbenannt in ")
  198. (set #filethere4 " und wird dann verschoben nach ")
  199. (set #backuptoXXX "sichern als Datei 'TextLoader.")
  200. (set #copyover "alte Version überschreiben")
  201. (set #oktodelete1 "\nSind Sie damit einverstanden, daß das alte TextLoader Hauptprogramm gelöscht, so daß das TextLoader Verzeichnis erstellt werden kann?\n")
  202. (set #oktodelete2 "\nSind Sie damit einverstanden, daß das alte _umbenannte_ TextLoader Hauptprogramm gelöscht wird, so daß das TextLoader Verzeichnis erstellt werden kann?\n")
  203. (set #TextLoaderfound "\nDas Installationsprogramm hat bereits eine installierte TextLoader Version gefunden. Was wollen Sie tun?\n")
  204. (set #newicon "\nWollen Sie das TextLoaderNG Piktogramm aus dem Archiv übernehmen? Wenn Sie bereits die Programmmerkmale verändert haben, wählen Sie bitte Nein.\n")
  205. (set #nonewicon  "Nein  - Programmmerkmale verändert.")
  206. (set #yesnewicon "Ja - Überschreibe das alte TextLoader Icon.")
  207. (set #whatcat "\nWählen Sie die Sprache, die installiert werden soll.\n")
  208. (set #wherecat "\nWohin wollen Sie die Sprachdatei installieren? Wird noch nicht gebraucht. Eingestellt ist ")
  209. (set #catnofind "Ich kann die passende Sprachdatei im Archiv nicht finden. Wird noch nicht gebraucht.")
  210. (set #whatdocs "\nWelche Anleitung zum TextLoaderNG wollen Sie installieren ?\n")
  211. (set #wheredocs "Wohin wollen Sie die gewählte Anleitung kopieren?")
  212. (set #byebye (cat "\nDie TextLoaderNG Installation wurde erfolgreich abgeschlossen!""\n\nViel Spaß beim arbeiten...\n\n" ))
  213. (set #setup_help
  214.         (cat
  215.             "Der TextLoaderNG braucht ein Assign um richtig arbeiten "
  216.             "zu können. Wenn Sie jetzt abbrechen müssen Sie später "
  217.             "diese Einträge manuell in der User-StartUp vornehmen "
  218.             "oder im Shell ein Assign herstellen um mit TextLoaderNG "
  219.                         "arbeiten zu können. "
  220.         )
  221.     )
  222.  
  223. ;***********************************************************************
  224. ; The Italiano Installation Strings for the TLNG
  225. ;***********************************************************************
  226. ;(set #setup1
  227. ;    (cat
  228. ;        "Per preparare l'ambiente del TLNG DEVO modificare la tua "
  229. ;        "User-StartUp aggiungendo i seguenti comandi:\n\n"
  230. ;    )
  231. ;)
  232. ;
  233. ;(set #setup2    "Se salti questo passo DOVRAI inserirli manualmente più tardi.")
  234. ;
  235. ;(set #setup_help
  236. ;    (cat
  237. ;        "TextLoader necessita di un assegnamento alla sua directory "
  238. ;        "principale al fine di funzionare correttamente. Se "
  239. ;        "salti questo passo DOVRAI inserirlo manualmente nella "
  240. ;        "tua User-StartUp o in una shell prima di eseguire il TLNG."
  241. ;    )
  242. ;)
  243. ;
  244. ;Please make your own Strings for the installation...  Si! I will do it!
  245. ;
  246. ;and send it to me...
  247. ;
  248. ;***********************************************************************
  249. ; The Francais Installation Strings for the TLNG
  250. ;***********************************************************************
  251. ;
  252. ;Please make your own Strings for the installation..  Qui! je vais le faire!
  253. ;
  254. ;and send it to me...
  255. ;
  256. ;***********************************************************************
  257. ; The Svenska Installation Strings for the TLNG
  258. ;***********************************************************************
  259. ;
  260. ;Please make your own Strings for the installation...  Yo! I will do it!
  261. ;
  262. ;and send it to me...
  263. ;
  264. ;***********************************************************************
  265. ; The Norsk Installation Strings for the TLNG
  266. ;***********************************************************************
  267. ;
  268. ;Please make your own Strings for the installation...  Yo! I will do it!
  269. ;
  270. ;and send it to me...
  271. ;
  272. ;***********************************************************************
  273. ; The Nederlands Installation Strings for the TLNG
  274. ;***********************************************************************
  275. ;
  276. ;Please make your own Strings for the installation...  Yo! Ick do dat!
  277. ;
  278. ;and send it to me...
  279. ;
  280. ;***********************************************************************
  281. ; The Dansk Installation Strings for the TLNG
  282. ;***********************************************************************
  283. ;
  284. ;Please make your own Strings for the installation...  Yo! I will do it!
  285. ;
  286. ;and send it to me...
  287. ;
  288.  
  289. )
  290. )
  291.  
  292. ;***********************************************************************
  293. ; Tach Mädelz and Jungz !
  294. ;***********************************************************************
  295. (message #about)
  296. (welcome) 
  297. (message #about2)
  298. (welcome) 
  299. (message #about3)
  300. (welcome) 
  301. ;********************************************************************
  302. ; Checking the CPU - Hello CPU are you there???
  303. ;********************************************************************
  304.   (set cpu (database "cpu"))
  305. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  306. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  307. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  308. (if (= @installer-version 0)
  309.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  310.   (if (= cpu 68060) (set #cpu 1))
  311.   (if (> (exists ("sys:libs/ppc.library")) 0) (set #cpu 2) )
  312.   (if (= cpu 68060) (set #cpu 1))
  313. )
  314.  
  315. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060" "PC603 or PC604")
  316.             (prompt #askcpu)
  317.                     (help   #askcpu2)
  318.                   (default #cpu)
  319.       )
  320. )
  321.  
  322. (if (= cpuPick 0) (set cpuadd ".020")) (if (= cpuPick 1) (set cpuadd ".040")) (if (= cpuPick 2) (set cpuadd ".ppc"))
  323.  
  324. ;***********************************************************************
  325. ; Ask where to put the TLNG & Make a new directory if needed
  326. ;***********************************************************************
  327. (set TextLoaderdir  (askdir (prompt #whereTextLoader)
  328.                 (help   #whereTextLoader)
  329.                      (default "SYS:")
  330.                )  
  331. )
  332.  
  333. (set where TextLoaderdir)
  334.  
  335. ;***********************************************************************
  336. ; Check to see if the TLNG is already there, if so ask to backup
  337. ;***********************************************************************
  338. (if (= 1 (exists (tackon where "TextLoader") ) ) 
  339.   (
  340.     (set vernum1 (getversion (tackon where "TextLoader") ))
  341.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  342.     (set TextLoader_old (cat ver1 "." rev1))
  343.  
  344.     (message (cat #filethere1 ver1 "." rev1 #filethere2 where #filethere3 
  345.                   (cat "TextLoader" TextLoader_old) #filethere4 (tackon TextLoaderdir "TextLoader") )
  346.     )
  347.     
  348.  
  349.     (copyfiles (source (tackon where "TextLoader"))
  350.                (dest where) 
  351.                (infos)
  352.                (newname (cat "TextLoader." TextLoader_old))
  353.     )
  354.     
  355.     (delete (tackon TextLoaderdir "TextLoader") (prompt #oktodelete1) (help #oktodelete1) (confirm) (infos)) 
  356.  
  357.     (if (< (exists (tackon TextLoaderdir "TextLoader")) 2) (makedir (tackon TextLoaderdir "TextLoader") (infos)) )    
  358.  
  359.     (copyfiles (source (tackon where (cat "TextLoader." TextLoader_old) ))
  360.                        (dest (tackon TextLoaderdir "TextLoader")) 
  361.                        (infos)
  362.                
  363.     )
  364.  
  365.     (delete (tackon where (cat "TextLoader" TextLoader_old)) (prompt #oktodelete2) (help #oktodelete2) (confirm) (infos) ) 
  366.  
  367.     ;(set firsttime 1)
  368.  
  369.   )
  370. )
  371.  
  372. (if (< (exists (tackon TextLoaderdir "TextLoader")) 2) (makedir (tackon TextLoaderdir "TextLoader") (infos)) )
  373. (set where (tackon TextLoaderdir "TextLoader"))
  374. (set @default-dest where)
  375.  
  376. ;********************************************************************
  377. ; Check for the old one and backup it or not...
  378. ;********************************************************************
  379. (if (exists (tackon where "TextLoader")) 
  380.   (
  381.       (set vernum1 (getversion (tackon where "TextLoader") ))
  382.       (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  383.       (set TextLoader_old (cat ver1 "x." rev1))
  384.  
  385.       (set keeper  (askchoice (choices  (cat #backuptoXXX TextLoader_old "'")  #copyover)
  386.                      (prompt #TextLoaderfound)
  387.                  (help   #TextLoaderfound)
  388.                      (default 0)
  389.                )
  390.       )    
  391.  
  392.  
  393.       (if (= keeper 0)
  394.          (copyfiles (source (tackon where "TextLoader"))
  395.                      (dest where) 
  396.                      (infos)
  397.                      (newname (cat "TextLoader" TextLoader_old))
  398.          )
  399.       )          
  400.  
  401.       (set firsttime 1)
  402.     
  403.   )
  404. )
  405.  
  406. ;********************************************************************
  407. ; Copy over the old TLNG file and Icon if wanted (Sure!)
  408. ;********************************************************************
  409. (copyfiles (source "TextLoaderNG") (dest where) (optional "nofail") )
  410. (copyfiles (source "RAM:TextLoader/TLNG.key") (dest where)  (optional "nofail") )
  411. (copyfiles (source "RAM:TextLoader/TLNG.prefs") (dest where)  (optional "nofail") )
  412. (copyfiles (source "RAM:TextLoader/TextLoader.logo") (dest where)  (optional "nofail") )
  413. (copyfiles (source "RAM:TextLoader/TextLoader.prefs") (dest where)  (optional "nofail") )
  414.  
  415. (if (= firsttime 0)  (copyfiles (source "TextLoaderNG.info") (dest where) (optional "nofail") ) )
  416.  
  417.  
  418. (if (OR (= keeper 0) (= (exists (tackon where "TextLoaderNG.info")) 0))
  419.   (
  420.   
  421.    (set newicon (askchoice (choices #yesnewicon #nonewicon)
  422.                            (prompt #newicon)
  423.                        (help   #newicon)
  424.                            (default 0)
  425.             )
  426.    )
  427.   
  428.    (if (= newicon 0) 
  429.      (copyfiles (source "TextLoaderNG.info") (dest where)  (optional "nofail") )
  430.    )
  431.  
  432.   )
  433.  
  434. )
  435.  
  436. ;********************************************************************
  437. ; Select and copy the files to the C-Directory...     Goil
  438. ;********************************************************************
  439.  
  440. ;********************************************************************
  441. ; Checking the Directories for viruses - Oh no... 
  442. ;********************************************************************
  443.    (if (exists "c:lhacheck")
  444. (message #aboutlhacheck))
  445. (set dataver (/ (getversion "LIBS:datatypes.library") 65536))
  446. (if (= dataver 45.4) (message #aboutdatatype1))
  447.  
  448. ;********************************************************************
  449. ; Select and copy the fonts to the fonts-Directory...   Joh Mann!  
  450. ;********************************************************************
  451. (message #aboutdevices)
  452.  
  453.   (
  454.     (copyfiles
  455.       (prompt "Copying the personal font")
  456.       (source "ram:TextLoader/Fonts")
  457.       (all)
  458.       (dest "Fonts:")
  459.       (confirm)
  460.       (help 
  461.         "This will copy the personal font to the >Fonts< directory. "
  462.         "If you copy it to the SYS:fonts directory, it will not check if there are already a font with this name! "
  463.         ""
  464.       )
  465.     )
  466. )
  467.  
  468. ;********************************************************************
  469. ; Ask and copy the documentations if wanted! Do it...
  470. ;********************************************************************
  471. (set docs (askoptions (choices " TextLoaderNG.guide" " TextLoaderNG.ReadMe" " TextLoader_old.dok" " Jochen.jpg" " Pascal.jpg")
  472.               (prompt #whatdocs)
  473.                       (help #whatdocs)
  474.       )
  475. )
  476.  
  477. (if (<> docs 0)
  478.  (
  479.    (set docsdir (askdir (prompt #wheredocs)
  480.                (help   #wheredocs)
  481.                     (default where)
  482.                 )  
  483.    )
  484.    (copyfiles (source "Ram:TextLoader/Extras") (dest (tackon where "Extras")) (all))
  485.    (copyfiles (source "Ram:TextLoader/html") (dest (tackon where "HTML")) (all))
  486.    (copyfiles (source "Ram:TextLoader/Rexx") (dest (tackon where "Rexx")) (all))
  487.    (if (IN docs 0) (copyfiles (source "TextLoaderNG.guide") (dest docsdir) (infos) (optional "nofail") ) )
  488.    (if (IN docs 0) (copyfiles (source "TextLoaderNG.ReadMe") (dest docsdir) (infos) (optional "nofail") ) )
  489.    (if (IN docs 0) (copyfiles (source "TextLoader_old.dok") (dest docsdir) (infos) (optional "nofail") ) )
  490.    (if (IN docs 0) (copyfiles (source "Jochen.Jpg") (dest docsdir) (infos) (optional "nofail") ) )
  491.    (if (IN docs 0) (copyfiles (source "Pascal.Jpg") (dest docsdir) (infos) (optional "nofail") ) )
  492.    (run (cat "run SYS:utilities/AmigaGuide ram:TextLoader/TextLoaderNG.ReadMe") )
  493.  
  494.  )
  495.  
  496. )
  497. ;********************************************************************
  498. ; Modify User-Startup   - Wow! It work`s...
  499. ;********************************************************************
  500. (set #setup1
  501.         (cat "\n\n\nTo get the TextLoader work right there has to be made "
  502.         "some changes to your User-Startup !\n\n"
  503.         command1
  504.         )
  505. )
  506.  
  507. (if (= @language "deutsch") (
  508.  
  509. (set #setup1
  510.         (cat "\n\n\nUm mit TextLoader richtig arbeiten zu können, muß "
  511.         "eine Änderung an der User-Startup vorgenommen werden.\n\n"
  512.         command1
  513.         )
  514. )
  515. ))
  516. (set #setup2
  517.         (cat
  518.             "If you skip this pass you MUST manually enter "
  519.             "it later."
  520.         )
  521.     )
  522.  
  523. (if (= @language "deutsch") (
  524.  
  525. (set #setup2
  526.         (cat
  527.             "Wenn Sie jetzt abrechen, müßen sie später die Änderung "
  528.             "manuell vornehmen !"
  529.         )
  530.     )
  531. ))
  532.  
  533. (startup "TextLoader"
  534.         (prompt
  535.             (cat
  536.                 #setup1
  537.                 "Assign TextLoader: \"" @default-dest "\"\n"
  538.                 "Path TextLoader: ADD\n\n"
  539.                 #setup2
  540.             )
  541.         )
  542.         (help #setup_help)
  543.         (command
  544.             "Assign TextLoader: \"" @default-dest "\"\n"
  545.             "Path TextLoader: ADD\n"
  546.         )
  547.     )
  548.  
  549.  
  550. (working "\nDeleteing temporary files.")
  551. (run "Delete RAM:TextLoader ALL FORCE QUIET")
  552. (run "Delete RAM:TextLoader/c ALL FORCE QUIET")
  553. (run "Delete RAM:TextLoader.info ALL FORCE QUIET")
  554.  
  555. (set #endnow (cat "Installation of TextLoader completed.\n"
  556.     "When the lines:\n" command1 "\ndoesn`t appear "
  557.     "in your Startup-Sequence or User-Startup, "
  558.     "please do it manually.\n\n"
  559.     "Best wishes...\n\n"
  560.     "Jochen Grus & Pascal Gisin"
  561.     ))
  562.  
  563. (if (= @language "deutsch") (
  564.  
  565.     (set #endnow (cat "\nInstallation von TextLoader beendet.\n\n"
  566.         "Falls die Zeilen:\n" #setup1 "\nnicht in Ihre Startup-Sequence bzw. "
  567.         "User-Startup eingefügt wurde, dann holen Sie dies bitte nach.\n\n"
  568.         "\n\nWir wünschen ihnen viel Spaß mit den TextLoader!\n\n"
  569.         "Jochen Grus & Pascal Gisin"
  570.     ))
  571. ))
  572.  
  573. ;********************************************************************************
  574. ; Ende - Bye - Fin - Finito - Fuck i must go now - see u in the next whisky bar. 
  575. ;********************************************************************************
  576.  
  577. (procedure Explor (set JOH 1) ( (while (< JOH 4444)  (set JOH (+ JOH 1)) )  ) )
  578.  
  579. (procedure InformX
  580. (working (cat "\n\n"
  581.               " Word 6,7,8\n"
  582.               " WordPerfect\n"
  583.               " AmiWriter\n"
  584.               " WordWorth\n"
  585.               " FinalWriter\n"
  586.               " HTML\n"
  587.               " RTF\n"
  588.               " \n"
  589.          )           
  590. )
  591. )
  592. (procedure InformY
  593. (working (cat "\n\n"
  594.               "\n"
  595.               "\n"
  596.               "TextLoaderNG Version 1.13\n"
  597.               "\n"
  598.               "by\n"
  599.               "\n"
  600.               "   Jochen Grus & Pascal Gisin   \n"
  601.               "\n"
  602.          )           
  603. )
  604. )
  605. (InformY)
  606.  
  607. (Explor)(Explor)
  608. (InformX)(Explor)
  609. (InformY)(Explor) (InformX)(Explor)
  610. (InformY)(Explor) (InformX)(Explor)
  611. (InformY)(Explor) (InformX)(Explor)
  612. (InformY)(Explor) (InformX)(Explor)
  613. (InformY)(Explor) (InformX)(Explor)
  614. (InformY)(Explor) (InformX)(Explor)
  615. (InformY)(Explor) (InformX)(Explor)
  616. (InformY)(Explor) (Explor) (Explor)
  617.  
  618. (exit #byebye)
  619.